package base.tag;

import java.util.LinkedHashMap;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.Tag;

public class BsCarouselItemTag extends BsBaseTag {

	private static final long serialVersionUID = 1L;
	
	private String img = "";
	
	@Override
	public int doEndTag() throws JspException {
		
		LinkedHashMap<String, String> map = new LinkedHashMap<String, String>();
		map.put("name", this.name);
		map.put("caption", this.caption);
		map.put("img", this.img);
		BsCarouselTag parent = (BsCarouselTag)this.getParent();
		parent.items.add(map);
		return Tag.EVAL_PAGE;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	

}
